<?php

class m140113_134636_create_user_test_table_with_data extends CDbMigration
{
	const TABLE = 'users';

    public function safeUp()
    {
        $this->createTable(self::TABLE, array(
            'id'          	   => 'pk',
            'first_name'  	   => 'string not null',
            'last_name'   	   => 'string not null',
            'email' 	  	   => 'string',
            'phone' 	  	   => 'string',
            'social_network'   => 'string not null',
            'create_time' 	   => 'timestamp null default null',
            'update_time' 	   => 'timestamp null default null',
        ));

    }

    public function safeDown()
    {
        $this->dropTable(self::TABLE);
    }
}
